﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Itegracion.Framework.Forms
{
    public class PrintHelper
    {
        public static string EmptyLine()
        {
            return "\r\n";
        }
        public static string EmptyLines(int nro) { 
            return Repeat("\r\n", nro);
        }
        public static string Line(int spaces, params object[] args) {
            string rpta = string.Empty;
            foreach (object item in args)
            {
                if (item is int)
                    rpta += Repeat(" ", Convert.ToInt32(item));
                else
                    rpta += item.ToString();
            }
            rpta += EmptyLines(spaces);
            rpta += "\r\n";
            return rpta;
        }

        public static string Repeat(string txt, int nro)
        {
            string rpta = string.Empty;
            for (int i = 0; i < nro; i++)
            {
                rpta += txt;
            }
            return rpta;
        }
    }
}
